package com.wangmei.service;

import com.wangmei.model.Productpic;
import com.wangmei.pojo.*;

import java.util.List;
import java.util.Map;

public interface ByCartService {
    int deleteByKey(int key);
    int deleteByKeyList(List keys);
    int addToCart(int uid, int pid, int num,int kuid, double tprice);
    BuyCartPojo getBuyCartList(int uid);

    /**
     * @param detailids (id1,id2,id3):(1,2,3)
     * @return
     */
    int payMoney(String detailids);

    /**
     * 支付详细页面
     * @param orderDetailPojos
     * @return 返回订单id;
     */
    String addToPay(OrderDetailPojo[] orderDetailPojos,Map<String,Object> map);

    int deletebuyCartitem(String detailids,String orderid,int paymethod,List<PayKUID> kuidList);

    Map<String,Object> getBuyCartDetailList(int uid);

    void readyToPay(Map map);

    OrderFinish orderfinalsearch(Map<String,Object> map);

    int limitToPay(ByAtOnce orderDetailPojo, Map<String,Object> map);
}
